﻿@model Tasker.WebUI.Models.LogOnModel

@{
    ViewBag.Title = "Log On";
    Layout = "~/Views/Shared/_AuthLayout.cshtml";
}

@section LoginPanelLinks
{
    @Html.ActionLink("Регистрация", "Register")
}

<div class="login-panel-header"></div>
@Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
@using (Html.BeginForm("LogOn","Account", FormMethod.Post, new {id = "auth-form"})) {
    <div>
        <h1 class="login-panel-title">Tasker</h1>

        <div class="editor-label">
            @Html.LabelFor(m => m.Login)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.Login)
            @Html.ValidationMessageFor(m => m.Login)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.Password)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.Password)
            @Html.ValidationMessageFor(m => m.Password)
        </div>

        <div class="editor-label">
            @Html.CheckBoxFor(m => m.RememberMe)
            @Html.LabelFor(m => m.RememberMe)
         
            <a href="javascript:;" id="login-submit" onclick="$('#auth-form').submit();" class="btn btn-primary btn-large">
                Войти
            </a>
        </div>
    </div>
}

